<template>
  <VImgAdd
    title="编辑党建轮播图"
    :id="id"
  ></VImgAdd>
</template>
<script setup lang="ts">
import { watch } from 'vue'
import VImgAdd from './ImgAdd.vue'

import { ref } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()
const id = ref()

watch(
  () => route,
  async () => {
    if (route.path == '/OA/Affairs/ImgEdit' && route.query.id) {
      id.value = route.query.id
    }
  },
  { deep: true, immediate: true }
)
</script>
